export const useSetLocalStorage = (key: string, value: string) => {
  localStorage.setItem(key, value)
}

export const useGetLocalStorage = (key: string): {
  [key: string]: any
} | null => {
  let local = localStorage.getItem(key)
  return local ? JSON.parse(local) : local
}

export const useRemoveLocalStorage = (key: string) => {
  localStorage.removeItem(key)
}